<style scoped lang='stylus'  rel='stylesheet/stylus'>

</style>

<template>
  <div>
  <van-card v-for ="item in $store.getters._select" :key = "item.id" :num="item.num" :price="item.price" :desc="item.desc" :title="item.title" :thumb="item.img"/>
  </div>
</template>

<script>
import { Card } from 'vant';
export default {
    components:{
        vanCard:Card
    },
    computed:{
      list(){
        let obj = {}
        for(const i in this.$store.state.selected){
          const items = this.$store.state.selected[i]
          for (const x in items ){
            obj[x]=items[x]
          }
        }
        console.log(obj)
        return obj
      }
    }
}
</script>